<?php $path = base_url().'public/frontend/';?>
<div class="blog-post-area">
        <h2 class="title text-center">Latest promotion from our PetShop</h2>
        <div class="single-blog-post">
            <h3><?php echo $promotion[0]['promotion_name'] ?></h3>
            <div class="post-meta">
                <ul>
                    <li><i class="fa fa-calendar"> Start Date</i> <?php echo $promotion[0]['start_date'] ?></li>
                    <li><i class="fa fa-calendar"> End Date</i> <?php echo $promotion[0]['end_date'] ?></li>
                </ul>
								<span>
									<i class="fa fa-star"></i>
									<i class="fa fa-star"></i>
									<i class="fa fa-star"></i>
									<i class="fa fa-star"></i>
									<i class="fa fa-star-half-o"></i>
								</span>
            </div>
            <a href="">
                <img src="<?php
                if (strpos($promotion[0]['url_image'], '//'))
                    echo $promotion[0]['url_image'];
                else echo base_url().'public/images/'.$promotion[0]['url_image'];
                ?>" alt="">
            </a>
            <p>
                <?php echo $promotion[0]['content'] ?>
            </p>
        </div>
    </div>

    <div class="replay-box">
        <div class="row">
            <div class="table-responsive cart_info">
                <table class="table table-condensed">
                    <thead style="background: #FE980F; color: #ffffff">
                    <tr class="cart_menu">
                        <td class="image" style="width: 100px">Product Name</td>
                        <td class="description" style="width: 150px">Discount</td>
                    </tr>
                    </thead>
                    <tbody id="tbody">
                    <?php foreach($promotions_detail as $promotion_detail) { ?>
                        <tr>
                            <td class="cart_product"><?php echo $promotion_detail['product_name'] ?></td>
                            <td class="cart_description"><?php echo $promotion[0]['discount']*100; ?>%</td>
                        </tr>
                    <?php }?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

